package com.boang.array;

import java.util.Arrays;

/*
  @author: 13813
  @date: 2024/11/21 16:56
*/
public class ArraysDemo {
    public static void main(String[] args) {
        //扩容
        //
        int[] arr = new int[]{1, 2, 3};

        int[] ints = Arrays.copyOf(arr, 5);

        String string = Arrays.toString(ints);
        System.out.println(string);


    }
}
